<?php

session_start();

# Path settings
$GLOBALS['templatePath'] = 'templates/';
$GLOBALS['cssPath'] = 'css/';
$GLOBALS['javascriptPath'] = 'javascript/';

# Version settinsg
$GLOBALS['jqueryVersion'] = '1.7.1';

switch($_SERVER['SERVER_NAME']) {
    case 'localhost':
        
        error_reporting(1);
        
        # Database credentials
        $host = 'localhost';
        $username = 'root';
        $password = '';
        $database = 'shoestring';
        
        $libaryPath = '../test.libary/';
        
        break;
}


# Make a database connection
$databaseConnection = mysql_connect($host, $username, $password);
mysql_select_db($database, $databaseConnection);

# Get the autoloader
include($GLOBALS['libaryPath'] . 'classlib.php');

?>
